package cn.bugstack.service;

import cn.bugstack.domain.req.ShopCartReq;
import cn.bugstack.domain.res.PayOrderRes;

import java.util.List;

/*
 * @author dztyykxx
 * @description 订单服务接口
 * @create 2025-7-23 14:31
 */
public interface IOrderService {
    /**
     * 创建订单
     * @param shopCartReq 购物车请求对象
     *                    包含用户ID和商品ID
     * @return 订单响应对象
     */
    PayOrderRes createOrder(ShopCartReq shopCartReq) throws Exception;

    void changeOrderPaySuccess(String orderId);

    List<String> queryNoPayNotifyOrder();

    List<String> queryTimeoutCloseOrderList();

    boolean changeOrderClose(String orderId);
}
